package com.xxg.oauth2.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xxg.oauth2.vo.UserVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface UserMapper extends BaseMapper<UserVo> {

    @Select("select id,user_name as userName, pwd as psw from user where user_name = #{userName}")
    UserVo findUserByName(String userName);

}
